@extends('admin_system.accountsManage.account_add')

@section('content_company')
    <div class="panel panel-default">
        <div class="panel-body">
            <form action="{{route('account_base_info_edit')}}" method="post" enctype="multipart/form-data">
                {{csrf_field()}}
                <table class="table table-bordered table-hover">
                    <tbody>
                    <tr>
                        <td>企业名称</td>
                        <td>
                            <input type="text" class="form-control" name="company_name" style="width: 30%"
                                   value="{{$unique_company['company_name']}}">
                        </td>
                    </tr>
                    <tr>
                        <td>企业编号</td>
                        <td>
                            <input type="text" class="form-control" name="company_sn" style="width: 30%"
                                   value="{{$unique_company['company_sn']??null}}" readonly="readonly">
                        </td>
                    </tr>
                    <tr>
                        <td>企业会员时间</td>
                        <td>
                            <input type="date" id="start" name="company_start" class="form-control pull-left"
                                   style="width: 30%;"
                                   value="{{\Carbon\Carbon::parse($unique_company['add_date'])->toDateString()}}">
                            <span class="pull-left">……</span>
                            <input type="date" id="end" name="company_end" class="form-control pull-left"
                                   style="width: 30%;"
                                   value="{{\Carbon\Carbon::parse($unique_company['vip_end_date'])->toDateString()}}">
                        </td>
                    </tr>
                    <tr>
                        <td>主管理员姓名</td>
                        <td><input type="text" name="manage_name"
                                   value="{{$unique_company['manage_name']??null}}"
                                   class="form-control"
                                   style="width: 30%"></td>
                    </tr>
                    <tr>
                        <td>主管理员账号</td>
                        <td><input type="text" name="manage_account"
                                   value="{{$unique_company['manager_account']??null}}"
                                   class="form-control"
                                   style="width: 30%"></td>
                    </tr>
                    <tr>
                        <td>主管理员密码</td>
                        <td>
                            <input type="password" name="password" class="form-control" style="width: 30%">
                        </td>
                    </tr>
                    </tbody>
                </table>
                <div style="width: 246px">
                    <button type="submit" class="btn btn-info" style="width: 100%">保存</button>
                </div>
            </form>
        </div>
    </div>
    <script>
        !(function () {
            sessionStorage.setItem('status',1);
        })()
    </script>
@endsection()